package com.eshop.dao;

import com.eshop.model.Address;

import java.util.List;

public interface AddressDao {
    public List<Address> queryAddressByUserId(int userId);

    public Address queryAddressByAddressId(int addressId);

    public void addAddress(Address address);

    public void deleteAddressByAddressId(int addressID);

    public void updateAddress(Address address);

    public Address queryAddressByUserIdAndDefault(int userID,int isDefault);
}
